KNO3, a naturally occurring salt, is an ingredient of gunpowder, is a food preservative, and is an ingredient in toothpaste for sensitive gums. Historically saltpeter has been used in the production of nitric acid HNO3. Other methods are now used.